package lj.fx.main;

import javafx.application.Application;
import javafx.stage.Stage;
import lj.fx.tool.ToolStage;
import lj.fx.tool.base.FactoryCtl;

/**
 * @author: liuwenju
 * @date: 2023/6/26 8:44
 * @version: 1.0
 */
public class FxMain extends Application {

    public static ToolStage toolStage;

    public static void main(String[] args) {
        launch();
    }

    @Override
    public void start(Stage stage) {
        // 加载视图文件
        stage.setTitle("fxml窗体-深入理解fxml");

        FactoryCtl.loadChildrenCtl("lj.fx.main/fx-main.fxml", toolStage = new ToolStage(stage));

        stage.show();
    }
}
